Make gdk_window_get_toplevel() for CHILD window with root as parent
authorAlexander Larsson <alexl@redhat.com>
Wed, 28 Jan 2009 15:37:56 +0000 (16:37 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:29 +0000 (10:15 +0200)
commit8b7d8431aa57bc88cd4d4a7e875da15ebf7ac7b5
treeae1a0a28c0ba61fa02fafbf9565b96bcc2f4c5f2
parent33c0c1fba8969bc79e3aae22cd83c7c142a4a802
Make gdk_window_get_toplevel() for CHILD window with root as parent

Having GDK_WINDOW_CHILD windows with root as the parent apparently works,
and metacity uses it. The current gdk_window_get_toplevel() returns the
root window for that, which is wrong, so we check that explicitly.
gdk/gdkwindow.c